package com.ruoyi.central.exception.task.cmd.run;

import com.ruoyi.common.exception.base.data.DataValidationException;
import com.ruoyi.common.exception.base.domian.EntityNotFoundOrDisableException;

/**
 * @Classname TaskCmdRunException
 * @Author: sunluquan
 * @Date: 2022/7/6 18:23
 * @Description TODO
 * 任务执行指令未找到或不存在异常
 */
public class TaskCmdRunException {

    /**
     * 任务执行指令 数据未找到异常
     */
    public static class DataNotFoundOrDisableException extends EntityNotFoundOrDisableException{

        public DataNotFoundOrDisableException(String defaultMessage) {
            super(defaultMessage);
        }

        public DataNotFoundOrDisableException() {
            this("任务执行指令未找到或不存在！");
        }

    }

    public static class DataValidationException extends com.ruoyi.common.exception.base.data.DataValidationException{

        public DataValidationException(String defaultMessage) {
            super(defaultMessage);
        }

        public DataValidationException() {
            this("任务执行指令输入参数校验异常！");
        }
    }
}
